﻿@model Treinamento2015_01.Models.ProductViewModel

@{
    ViewBag.Title = Treinamento2015_01.Resources.General.Resource.Delete;
}
@Styles.Render("~/Content/Productcss.css")

<h2>@Treinamento2015_01.Resources.General.Resource.Delete</h2>

<h3>@Treinamento2015_01.Resources.General.Resource.DeleteConfirmationTitle</h3>
<div>
    <h4>@Treinamento2015_01.Resources.Product.ResourceProduct.DeleteTitle</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Name)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.ProductType)
        </dt>

        <dd>
            <img class="TypeImage" src="@Url.Content(Model.ProductType.ImageUrl)">@Html.ValueFor(model => model.ProductType.Name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.IsActive)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.IsActive)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Manufacturer)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Manufacturer.Name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Price)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Price)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.CreationDate)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.CreationDate)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.ModificationDate)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.ModificationDate)
        </dd>

    </dl>

    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
            <input type="submit" value="@Treinamento2015_01.Resources.General.Resource.Delete" class="btn btn-default" /> |
            @Html.ActionLink(@Treinamento2015_01.Resources.General.Resource.BackToList, "Index")
        </div>
    }
</div>
